#pragma once
#include <QObject>
#include <QColor>
#include "MyVertex.h"
#include "Patch.h"

namespace PUMA
{
	// fill float color array using QColor class (compability function)
	static inline void qSetColor(float colorVec[], QColor c);

	class Puma
	{
	public:
		Puma(void);
		~Puma(void);

		virtual void DrawShader(QGLShaderProgram& shaderProgram, QMatrix4x4& viewMatrix, QMatrix4x4& projectionMatrix);

	protected:
		void buildGeometry();

	private:
	//	void setColor(QColor c);
	//	void draw() const;
	//private:
	//	void buildGeometry(int d, qreal s);

		QList<Patch *> parts;
	//	Geometry *geom;
	};
}